package org.jeecg.modules.appuser.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.taobao.api.ApiException;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.appuser.entity.TbMnCollect;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 用户商品收藏
 * @Author: jeecg-boot
 * @Date:   2020-05-19
 * @Version: V1.0
 */
public interface ITbMnCollectService extends IService<TbMnCollect> {

    Result<?> collectProduct(TbMnCollect tbMnCollect);

    Result<?> getProductCollectAll(Integer pageNo, Integer pageSize);

    IPage<TbMnCollect> pageAndUserData(Page<TbMnCollect> page, TbMnCollect tbMnCollect);

    Result<?> getMyProductCollectAll(String user_id, Integer pageNo, Integer pageSize) throws ApiException;
}
